package com.lxyk.service;

import com.github.pagehelper.PageInfo;
import com.lxyk.pojo.Customer;
import com.lxyk.pojo.Worker;

import java.util.List;

/**
 * @ClassName WorkerService
 * @Description TODO
 * @Author FJQ
 * @Date 2022/10/24 15:07
 * @Version 1.0
 **/
public interface WorkerService {


    //查询所有送水工信息
    List<Worker> listWorker();

    //查询所有带分页
    PageInfo<Worker>listWorker(Worker worker, Integer pageNum, Integer pageSize);


    //查询所有带分页
    PageInfo<Worker> listWorker(Integer pageNum,Integer pageSize);

    //新增
    int saveWorker(Worker worker);

    //根据id 获取送水工信息
    Worker getWorkerById(Integer wid);
    //修改送水工信息
    int updateWorker(Worker worker);

    //调整工资
    int addSalary(Integer wid,Integer workerSalary);
}
